package com.ly.feign;

import com.ly.pojo.Products;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("cloud-producer")
public interface ConsumerFeign {

    @RequestMapping("/products/getPort")
    public String getPort();

    @RequestMapping("/products/getProductsById/{id}")
    public Products getProductsById(@PathVariable("id") Integer id);

}
